<table align="center" bgcolor="#F3F3F3" style="BORDER-RIGHT:#999 1px solid; border-bottom:#999 1px solid; border-left:#999 1px solid; 
        border-top:#999 1px solid;" width="953" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr>
    <td height="19" colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
      <tr>
        <td width="20" height="19" valign="top" bgcolor="#333333" style="border-bottom:#999999 2px solid;"><!--DWLayoutEmptyCell-->&nbsp;</td>
        <td width="644" valign="middle" bgcolor="#333333" style="border-bottom:#999999 2px solid;" class="style2">Agregar
            Respuesta</td>
        <td width="268" valign="middle" bgcolor="#333333" style="border-bottom:#999999 2px solid;" class="style2" align="right"><a href="{$conf.html}/index.php" class="blanco">[Pagina Principal]</a></td>
        <td width="19" valign="top" bgcolor="#333333" style="border-bottom:#999999 2px solid;"><!--DWLayoutEmptyCell-->&nbsp;</td>
      </tr>
    </table></td>
    </tr>
  <tr>
    <td width="15" height="86" valign="top" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="936" valign="top">
	<table  width="100%" border="0" cellpadding="0" cellspacing="0">
   	 <form method="POST" action="{$conf.html}/edit_answer_type_choose.php?sid={$data.sid}&qid={$data.qid}&aid={$answer.aid}" name="qform">
      <tr>
        <td width="192" height="17">
		 <input type="hidden" name="mode" value="{$data.mode_new_question}">
       <input type="hidden" name="sid" value="{$data.sid}">
        <input type="hidden" name="qid" value="{$data.qid}">
        <input type="hidden" name="aid" value="{$answer.aid}">
		</td>
            <td width="286"></td>
            <td width="458"></td>
          </tr>
      <tr>
        <td height="15" valign="top"><strong>Tipo de Respuesta Predeterminada </strong></td>
            <td></td>
        <td></td>
      </tr>
      
      <tr>
        <td height="29" colspan="2" valign="top"><select name="answer" size="1">
		  {section name="p" loop=$answerx.aid}
		  {*foreach from=$answer.name key=key item=item*}
			<option value="{$answerx.aid[p]}{*$answer.aid*}" {$answerx.selected[p]}>{*$item*}{$answerx.name[p]}</option>
		  {*/foreach*}
		  {/section}
          </select>
          <input type="submit" name="answer_type_choose" value="Escoger Respuesta">
		  <a href="#show_answers" onClick="window.open('display_answers.php?sid=0','mywindow','toolbar=no,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=640,height=480,left=30,top=30');" class="negro">[Valores] </a>
          </td>
            <td>&nbsp;</td>
          </tr>
      <tr>
        <td height="25">&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
</form>
    </table>
	
	
	</td>
  </tr>
  
  <tr>
    <td height="26" colspan="2" valign="top"><table style="border-top:#999 1px solid;"  width="100%" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
      <tr>
       <td height="26" align="center" valign="middle" bgcolor="#EBEBEB" style="border-top:#D7D7D7 2px solid; border-bottom:#D7D7D7 2px solid;">
	   <strong> 
	   <a href="{$conf.html}/question_edit_survey.php?sid={$data.sid}&mode=questions" class="negro">[Agregar Pregunta]</a>
	   </strong>
	   </td>
      </tr>
    </table></td>
    </tr>

</table>